package com.qst.crop.service;

import com.qst.crop.entity.Purchase;
import com.qst.crop.entity.Shoppingcart;
import com.qst.crop.model.MyPurchase;

import java.util.List;

public interface PurchaseService {
    /**
     * 添加新的采购记录
     */
    void add(Purchase purchase);
    /**
     * 根据采购类型查询采购记录
     */
    List<MyPurchase> selectByPurchaseType();
    /**
     * 获取指定所有者最新创建的采购记录ID
     */
    Purchase selectNewPurchaseId(String ownName);

}
